package com.joolun.activity.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.joolun.common.annotation.Excel;
import com.joolun.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 活动参与码明细对象 activity_take_info
 *
 * @author www.joolun.com
 * @date 2022-11-22
 */
@Data
@TableName("activity_take_info")
@EqualsAndHashCode(callSuper = true)
public class ActivityTakeInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** PK */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 活动唯一编码 */
    @Excel(name = "活动唯一编码")
    private String activityCode;

    /** 参与总码 */
    @Excel(name = "参与总码")
    private String takeCode;

    /** 活动参与唯一编码 */
    @Excel(name = "活动参与唯一编码")
    private String activityTakeCode;

    /** 活动码状态1、未绑定 2、已绑定、3已中奖 */
    @Excel(name = "活动码状态1、未绑定 2、已绑定、3已中奖")
    private String status;

    /** 绑定用户 */
    @Excel(name = "绑定用户")
    private String openId;

    /** 绑定时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "绑定时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date bindingTime;

    @Excel(name = "用户名称")
    private String name;

    @Excel(name = "用户手机号")
    private String phone;

    /** 生成人 */
    @Excel(name = "生成人")
    private String genUser;

    /** 生成部门 */
    @Excel(name = "生成部门")
    private String genDept;

    /** 生成人ID */
    private Long genUserId;

    /** 部门ID */
    private Long genDeptId;

    /** 数量 */
    @TableField(exist = false)
    private Long count;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date createTimes;
}
